package cn.huijielong.modules.pub.entity;

import java.io.Serializable;
import java.util.Date;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.NotBlank;

import cn.huijielong.common.validator.group.AddGroup;

import java.math.BigDecimal;


/**
 * 取货地址
 * 
 * @author xietong
 * @email xietong@gmail.com
 * @date 2019-09-21 21:00:53
 */
public class LocationEntity implements Serializable {
	private static final long serialVersionUID = 1L;
	
	//
	private Long locationId;
	//
	@NotNull(message="商户ID不能为空", groups = AddGroup.class)
	private Long merchantId;
	//地址描述
	@NotBlank(message="地理位置不能为空", groups = AddGroup.class)
	private String name;
	//纬度
	private BigDecimal latitude;
	//经度
	private BigDecimal longitude;
	//
	private String address;

	/**
	 * 设置：
	 */
	public void setLocationId(Long locationId) {
		this.locationId = locationId;
	}
	/**
	 * 获取：
	 */
	public Long getLocationId() {
		return locationId;
	}
	/**
	 * 设置：
	 */
	public void setMerchantId(Long merchantId) {
		this.merchantId = merchantId;
	}
	/**
	 * 获取：
	 */
	public Long getMerchantId() {
		return merchantId;
	}
	/**
	 * 设置：地址描述
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * 获取：地址描述
	 */
	public String getName() {
		return name;
	}
	/**
	 * 设置：纬度
	 */
	public void setLatitude(BigDecimal latitude) {
		this.latitude = latitude;
	}
	/**
	 * 获取：纬度
	 */
	public BigDecimal getLatitude() {
		return latitude;
	}
	/**
	 * 设置：经度
	 */
	public void setLongitude(BigDecimal longitude) {
		this.longitude = longitude;
	}
	/**
	 * 获取：经度
	 */
	public BigDecimal getLongitude() {
		return longitude;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	
}
